package com.ldzl.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 库存盘点结果对象 ck_stock_taking_result
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("ck_stock_taking_result")
public class CkStockTakingResult {

    private static final long serialVersionUID = 1L;

    /** 结果ID */
    @TableId(value = "result_id", type = IdType.AUTO)
    private Long resultId;

    /** 盘点ID */
    private Long takingId;

    /** 库存ID */
    private Long materialStockId;

    /** 物料ID */
    private Long itemId;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String itemName;

    /** 规格型号 */
    @Excel(name = "规格型号")
    private String specification;

    /** 单位名称 */
    @Excel(name = "单位名称")
    private String unitName;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal unitPrice;

    /** 批次ID */
    private Long batchId;

    /** 账面库存 */
    @Excel(name = "账面库存")
    private Integer bookStock;

    /** 系统库存数量 */
    @Excel(name = "系统库存数量")
    private BigDecimal systemQuantity;

    /** 实际库存数量 */
    @Excel(name = "实际库存数量")
    private BigDecimal actualQuantity;

    /** 盘点差异数量 */
    @Excel(name = "盘点差异数量")
    private BigDecimal differenceQuantity;

    /** 系统库存金额 */
    @Excel(name = "系统库存金额")
    private BigDecimal systemAmount;

    /** 实际库存金额 */
    @Excel(name = "实际库存金额")
    private BigDecimal actualAmount;

    /** 盘点差异金额 */
    @Excel(name = "盘点差异金额")
    private BigDecimal differenceAmount;

    /** 盘点数量 */
    @Excel(name = "盘点数量")
    private Integer takingQuantity;

    /** 数量 */
    @Excel(name = "数量")
    private BigDecimal quantityNum;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal amountNum;

    /** 备注 */
    private String remark;

    /** 操作类型 */
    private String operationType;

    /** 操作内容 */
    private String operationContent;

    /** 预留字段1 */
    private String attr1;

    /** 预留字段2 */
    private String attr2;

    /** 预留字段3 */
    private Integer attr3;

    /** 预留字段4 */
    private Integer attr4;

    /** 创建者 */
    private String createBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新者 */
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** 是否删除 */
    private String isDelete;
} 